<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="cf">
        <div class="main-title">
            <h2>使用部门列表</h2>
        </div>
        <div class="cf">
            <div class="fl">
                <a class="btn btn-default" href="{:U('Subpro/departmentadd')}">新 增</a>
            </div>
        </div>
    </div>

    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table>
            <thead>
            <tr>
                <th>ID</th>
                <th>部门名称</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td>{$vo.id} </td>
                        <td>{$vo.name}</td>
                        <td><a href="{:U('Subpro/departmentedit',array('id'=>$vo['id']))}" class="btn btn-primary">编辑</a>
                            <a href="{:U('Subpro/departmentdel',array('id'=>$vo['id']))}" class="confirm ajax-get btn btn-warning">删除</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <!--<div class="page">
        {$_page}
    </div>-->
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Subpro/department')}');
    </script>
</block>
